package com.cn.wanxi.test;

import java.util.Scanner;

/**
 * 考试奖励
 */
public class Reward {
    public static void main(String[] args) {
        /**
         * 1.录入考试成绩
         * 2.成绩区间
         * 3.判断成绩在某个区间
         * 4.打印
         */
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的成绩");
        byte i = scanner.nextByte();
//        按照正常情况下，每一行代码都会运算，
//        boolean youlechang = i >= 90 & i <= 94;
//        boolean bianxing = i >= 80 & i <= 89;
//        boolean bike = i >= 95 & i <= 100;
//        boolean work = i <= 79;
        int oneStart = 95;
        int oneEnd = 100;
        int twoStart = 90;
        int twoEnd = 94;
        int threeStart = 80;
        int threeEnd = 89;
        if (i >= twoStart && i <= twoEnd) {
            System.out.println("youlechang");
        } else if (i >= threeStart && i <= threeEnd) {
            System.out.println("bianxing");
        } else if (i >= oneStart && i <= oneEnd) {
            System.out.println("bike");
        } else {
            System.out.println("work");
        }
    }

}

